package com.dao;

import com.entity.ZhaopinxinxiEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;

import org.apache.ibatis.annotations.Param;
import com.entity.vo.ZhaopinxinxiVO;
import com.entity.view.ZhaopinxinxiView;
import org.apache.ibatis.annotations.Select;


/**
 * 企业招聘信息
 * 
 * @author 
 * @email 
 * @date 2020-05-13 10:02:22
 */
public interface ZhaopinxinxiDao extends BaseMapper<ZhaopinxinxiEntity> {
	
	List<ZhaopinxinxiVO> selectListVO(@Param("ew") Wrapper<ZhaopinxinxiEntity> wrapper);
	
	ZhaopinxinxiVO selectVO(@Param("ew") Wrapper<ZhaopinxinxiEntity> wrapper);
	
	List<ZhaopinxinxiView> selectListView(@Param("ew") Wrapper<ZhaopinxinxiEntity> wrapper);

	List<ZhaopinxinxiView> selectListView(Pagination page,@Param("ew") Wrapper<ZhaopinxinxiEntity> wrapper);
	
	ZhaopinxinxiView selectView(@Param("ew") Wrapper<ZhaopinxinxiEntity> wrapper);

	@Select("select zid from rec where uid = #{userId}")
	List<Long> getZIdList(Long userId);

	@Select("select count(1) `value` , qiyemingcheng  `name` from zhaopinxinxi GROUP BY qiyemingcheng")
	List<Map<String, Object>> getData1();
	@Select("select name,value from part1")
	List<Map<String, Object>> get1();
	@Select("select name,value from part2")
	List<Map<String, Object>> get2();
	@Select("select name,value from part3")
	List<Map<String, Object>> get3();
	@Select("select name,value from part4")
	List<Map<String, Object>> get4();
	@Select("select name,value from part5")
	List<Map<String, Object>> get5();
	@Select("select name,value from part6")
	List<Map<String, Object>> get6();
	@Select("select name,value from part7")
	List<Map<String, Object>> get7();
}
